package com.lwlk.zdk.model.pw;

import java.util.ArrayList;
import java.util.List;

public class pwVehicleMessageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public pwVehicleMessageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andPlatformIdIsNull() {
            addCriterion("platform_id is null");
            return (Criteria) this;
        }

        public Criteria andPlatformIdIsNotNull() {
            addCriterion("platform_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlatformIdEqualTo(Integer value) {
            addCriterion("platform_id =", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdNotEqualTo(Integer value) {
            addCriterion("platform_id <>", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdGreaterThan(Integer value) {
            addCriterion("platform_id >", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("platform_id >=", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdLessThan(Integer value) {
            addCriterion("platform_id <", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdLessThanOrEqualTo(Integer value) {
            addCriterion("platform_id <=", value, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdIn(List<Integer> values) {
            addCriterion("platform_id in", values, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdNotIn(List<Integer> values) {
            addCriterion("platform_id not in", values, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdBetween(Integer value1, Integer value2) {
            addCriterion("platform_id between", value1, value2, "platformId");
            return (Criteria) this;
        }

        public Criteria andPlatformIdNotBetween(Integer value1, Integer value2) {
            addCriterion("platform_id not between", value1, value2, "platformId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIsNull() {
            addCriterion("vehicle_id is null");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIsNotNull() {
            addCriterion("vehicle_id is not null");
            return (Criteria) this;
        }

        public Criteria andVehicleIdEqualTo(Integer value) {
            addCriterion("vehicle_id =", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotEqualTo(Integer value) {
            addCriterion("vehicle_id <>", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdGreaterThan(Integer value) {
            addCriterion("vehicle_id >", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("vehicle_id >=", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdLessThan(Integer value) {
            addCriterion("vehicle_id <", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdLessThanOrEqualTo(Integer value) {
            addCriterion("vehicle_id <=", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIn(List<Integer> values) {
            addCriterion("vehicle_id in", values, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotIn(List<Integer> values) {
            addCriterion("vehicle_id not in", values, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdBetween(Integer value1, Integer value2) {
            addCriterion("vehicle_id between", value1, value2, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotBetween(Integer value1, Integer value2) {
            addCriterion("vehicle_id not between", value1, value2, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andMsgPriorityIsNull() {
            addCriterion("msg_priority is null");
            return (Criteria) this;
        }

        public Criteria andMsgPriorityIsNotNull() {
            addCriterion("msg_priority is not null");
            return (Criteria) this;
        }

        public Criteria andMsgPriorityEqualTo(String value) {
            addCriterion("msg_priority =", value, "msgPriority");
            return (Criteria) this;
        }

        public Criteria andMsgPriorityNotEqualTo(String value) {
            addCriterion("msg_priority <>", value, "msgPriority");
            return (Criteria) this;
        }

        public Criteria andMsgPriorityGreaterThan(String value) {
            addCriterion("msg_priority >", value, "msgPriority");
            return (Criteria) this;
        }

        public Criteria andMsgPriorityGreaterThanOrEqualTo(String value) {
            addCriterion("msg_priority >=", value, "msgPriority");
            return (Criteria) this;
        }

        public Criteria andMsgPriorityLessThan(String value) {
            addCriterion("msg_priority <", value, "msgPriority");
            return (Criteria) this;
        }

        public Criteria andMsgPriorityLessThanOrEqualTo(String value) {
            addCriterion("msg_priority <=", value, "msgPriority");
            return (Criteria) this;
        }

        public Criteria andMsgPriorityLike(String value) {
            addCriterion("msg_priority like", value, "msgPriority");
            return (Criteria) this;
        }

        public Criteria andMsgPriorityNotLike(String value) {
            addCriterion("msg_priority not like", value, "msgPriority");
            return (Criteria) this;
        }

        public Criteria andMsgPriorityIn(List<String> values) {
            addCriterion("msg_priority in", values, "msgPriority");
            return (Criteria) this;
        }

        public Criteria andMsgPriorityNotIn(List<String> values) {
            addCriterion("msg_priority not in", values, "msgPriority");
            return (Criteria) this;
        }

        public Criteria andMsgPriorityBetween(String value1, String value2) {
            addCriterion("msg_priority between", value1, value2, "msgPriority");
            return (Criteria) this;
        }

        public Criteria andMsgPriorityNotBetween(String value1, String value2) {
            addCriterion("msg_priority not between", value1, value2, "msgPriority");
            return (Criteria) this;
        }

        public Criteria andMsgContentIsNull() {
            addCriterion("msg_content is null");
            return (Criteria) this;
        }

        public Criteria andMsgContentIsNotNull() {
            addCriterion("msg_content is not null");
            return (Criteria) this;
        }

        public Criteria andMsgContentEqualTo(String value) {
            addCriterion("msg_content =", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentNotEqualTo(String value) {
            addCriterion("msg_content <>", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentGreaterThan(String value) {
            addCriterion("msg_content >", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentGreaterThanOrEqualTo(String value) {
            addCriterion("msg_content >=", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentLessThan(String value) {
            addCriterion("msg_content <", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentLessThanOrEqualTo(String value) {
            addCriterion("msg_content <=", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentLike(String value) {
            addCriterion("msg_content like", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentNotLike(String value) {
            addCriterion("msg_content not like", value, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentIn(List<String> values) {
            addCriterion("msg_content in", values, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentNotIn(List<String> values) {
            addCriterion("msg_content not in", values, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentBetween(String value1, String value2) {
            addCriterion("msg_content between", value1, value2, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgContentNotBetween(String value1, String value2) {
            addCriterion("msg_content not between", value1, value2, "msgContent");
            return (Criteria) this;
        }

        public Criteria andMsgResponseIsNull() {
            addCriterion("msg_response is null");
            return (Criteria) this;
        }

        public Criteria andMsgResponseIsNotNull() {
            addCriterion("msg_response is not null");
            return (Criteria) this;
        }

        public Criteria andMsgResponseEqualTo(String value) {
            addCriterion("msg_response =", value, "msgResponse");
            return (Criteria) this;
        }

        public Criteria andMsgResponseNotEqualTo(String value) {
            addCriterion("msg_response <>", value, "msgResponse");
            return (Criteria) this;
        }

        public Criteria andMsgResponseGreaterThan(String value) {
            addCriterion("msg_response >", value, "msgResponse");
            return (Criteria) this;
        }

        public Criteria andMsgResponseGreaterThanOrEqualTo(String value) {
            addCriterion("msg_response >=", value, "msgResponse");
            return (Criteria) this;
        }

        public Criteria andMsgResponseLessThan(String value) {
            addCriterion("msg_response <", value, "msgResponse");
            return (Criteria) this;
        }

        public Criteria andMsgResponseLessThanOrEqualTo(String value) {
            addCriterion("msg_response <=", value, "msgResponse");
            return (Criteria) this;
        }

        public Criteria andMsgResponseLike(String value) {
            addCriterion("msg_response like", value, "msgResponse");
            return (Criteria) this;
        }

        public Criteria andMsgResponseNotLike(String value) {
            addCriterion("msg_response not like", value, "msgResponse");
            return (Criteria) this;
        }

        public Criteria andMsgResponseIn(List<String> values) {
            addCriterion("msg_response in", values, "msgResponse");
            return (Criteria) this;
        }

        public Criteria andMsgResponseNotIn(List<String> values) {
            addCriterion("msg_response not in", values, "msgResponse");
            return (Criteria) this;
        }

        public Criteria andMsgResponseBetween(String value1, String value2) {
            addCriterion("msg_response between", value1, value2, "msgResponse");
            return (Criteria) this;
        }

        public Criteria andMsgResponseNotBetween(String value1, String value2) {
            addCriterion("msg_response not between", value1, value2, "msgResponse");
            return (Criteria) this;
        }

        public Criteria andIsResponseIsNull() {
            addCriterion("is_response is null");
            return (Criteria) this;
        }

        public Criteria andIsResponseIsNotNull() {
            addCriterion("is_response is not null");
            return (Criteria) this;
        }

        public Criteria andIsResponseEqualTo(String value) {
            addCriterion("is_response =", value, "isResponse");
            return (Criteria) this;
        }

        public Criteria andIsResponseNotEqualTo(String value) {
            addCriterion("is_response <>", value, "isResponse");
            return (Criteria) this;
        }

        public Criteria andIsResponseGreaterThan(String value) {
            addCriterion("is_response >", value, "isResponse");
            return (Criteria) this;
        }

        public Criteria andIsResponseGreaterThanOrEqualTo(String value) {
            addCriterion("is_response >=", value, "isResponse");
            return (Criteria) this;
        }

        public Criteria andIsResponseLessThan(String value) {
            addCriterion("is_response <", value, "isResponse");
            return (Criteria) this;
        }

        public Criteria andIsResponseLessThanOrEqualTo(String value) {
            addCriterion("is_response <=", value, "isResponse");
            return (Criteria) this;
        }

        public Criteria andIsResponseLike(String value) {
            addCriterion("is_response like", value, "isResponse");
            return (Criteria) this;
        }

        public Criteria andIsResponseNotLike(String value) {
            addCriterion("is_response not like", value, "isResponse");
            return (Criteria) this;
        }

        public Criteria andIsResponseIn(List<String> values) {
            addCriterion("is_response in", values, "isResponse");
            return (Criteria) this;
        }

        public Criteria andIsResponseNotIn(List<String> values) {
            addCriterion("is_response not in", values, "isResponse");
            return (Criteria) this;
        }

        public Criteria andIsResponseBetween(String value1, String value2) {
            addCriterion("is_response between", value1, value2, "isResponse");
            return (Criteria) this;
        }

        public Criteria andIsResponseNotBetween(String value1, String value2) {
            addCriterion("is_response not between", value1, value2, "isResponse");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}